<template>
  <div class="common-layout">
    <el-container>
      <el-header style="padding: 0; height: 61px">
        <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal" @select="handleSelect"
                 background-color="#545c64" text-color="#fff" active-text-color="#ffd04b"
                 style="display: flex; justify-content: space-between; align-items: center;">

          <el-menu-item index="0">
            <el-avatar :src="require('@/assets/images/logo/logo.png')"></el-avatar>
          </el-menu-item>

          <router-link to="/home">
            <el-menu-item index="1">
              首页
            </el-menu-item>
          </router-link>
          <router-link to="/jobs">
            <el-menu-item index="2">
              岗位
            </el-menu-item>
          </router-link>
          <router-link to="/resume">
            <el-menu-item index="3">
              简历
            </el-menu-item>
          </router-link>
          <router-link to="/learning">
            <el-menu-item index="4">
              学习
            </el-menu-item>
          </router-link>



            <router-link to="/my">
              <el-menu-item index="5" style="margin-left:1000px;">
                我的
              </el-menu-item>
            </router-link>



        </el-menu>
      </el-header>

      <el-main>
        <router-view :key="$route.fullPath">
        </router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "frontHeader",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>
